package com.icangya.DAO.impl;

import com.icangya.DAO.ICommonProblemDAO;
import com.icangya.domain.CommonProblem;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CommonProblemDAOImpl extends  BaseDAO<CommonProblem> implements ICommonProblemDAO{
    @Override
    public List getCommonProblem() {
        String hql="FROM CommonProblem";
        List list= getHibernateTemplate().find(hql);
        if(list.size()>0)
            return list;
        return null;
    }
}
